package com.example.elderlycare.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;

@Data
@Builder
@TableName("visits")
public class Visit {

    private Integer id;
    private Date deletedAt;
    private Integer elderId;
    private String name;
    private Date startTime;
    private Date endTime;
    private String phone;
    private String number;
    private Integer certificateId;
    private Integer nurseId;

    @TableField(exist = false)
    private String elderName;
    @TableField(exist = false)
    private String certificate;
    @TableField(exist = false)
    private String nurseName;

    @Tolerate
    Visit() {
    }
}
